package zfbrouter

import (
	"github.com/gin-gonic/gin"
	"yundian/internel/app/handlers/alipay"
	"yundian/internel/pkg/dingo"
)

func InitNotifyRouter() dingo.ApiRouter {
	return func(g *gin.RouterGroup) {
		{
			g.POST("alipay/payNotify", alipay.HandleAliPayNotifyNoDraw)                             // 支付通知
			g.POST("alipay/payNotify/sing", alipay.HandleAliPayNotifySing)                    // 首次周期扣费支付
			g.POST("alipay/payNotify/agreement", alipay.HandleAliPayNotifyAgreement)          // 周期扣费签约通知
			g.POST("alipay/payNotify/agreement/auto", alipay.HandleAliPayNotifyAgreementAuto) // 周期扣费，自动续费通知
		}
	}
}
